/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function dailyAssignment() {
    var ft = $d('fromTime').value;
    var tt = $d('toTime').value;
    var cid = $d('driverOption').value;
    var params = 'fromTime='+ escape(ft) +'&toTime='+ escape(tt) +'&driverId='+cid ;
    window.open('dailyAssignment?'+params,'Daily Assignment Report','width=600,height=400');
}
function loadDriverType() {
    var list = service.getDriverOption();
    var i=0;
    var len = $d("driverOption").options.length;
    for( i = len; i >= 0; i--) {
        $d("driverOption").options[i] = null; 
    }
    for( i =0; i < list.size(); i++ ) {
        var txt = list.get(i).text;
        var val = list.get(i).value;
        $d("driverOption").options[i] = new Option(txt, val, false, false);
        
    }
}
